Loans API
Lookup Services
Description
All of the Lookup services are following a caching mechanism. For each request, the data will be fetched from Object Store instead of calling Temenos API everytime. The Scheduler runs twice a day (every 12 hrs). This mechanism is used to decrease the load on sys-api.
Object Store Configuration
os:
entry_ttl: "1"
exp_interval: "1"
keys:
purposeFacility: "purposeFacilities"
lendingProducts: "lendingProducts"
insuranceCompany: "insuranceCompany"
tmlList: "loansTmlList"
Scheduler Configuration
The unit is hours
scheduler:
frequency: "12"
Error Handler
output application/json
{
"Root":{
"message_Type":"Response",
"response_status":"Failed",
"service_name": "Purpose Facility",
"flow_name":"prc-implementation-purpose-facility-temenos-sub-flow",
"correlationId": vars.requestHeaders.'x-correlation-id',
"timestamp": now() as DateTime,
"log_tracepoint": "EXCEPTION"
},
"header":{
"channel_id": vars.requestHeaders.'x-channel-id',
"Bank_Id": vars.requestHeaders.'x-bank-id',
"User_Id": vars.requestHeaders.'x-user-id',
"Customer_ID": vars.requestHeaders.'x-customer-id',
"Sub_Channel_Id": vars.requestHeaders.'x-sub-channel-id' default null,
},
"log-Message":{
"Message": error.errorType.asString,
"Log_Level":"ERROR",
"Payload": "Error": error.description,
"Unique_ID": vars.requestHeaders.'x-customer-id',
"Latency": ""
},
"System_Info":{
"Host_machine":"",
"Environment": p('mule.env'),
"Source_System":vars.requestHeaders.'x-channel-id',
"Target_System":"Temenos-T24-System",
"Sender_IP":""
}
}